home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
fglqbx10.zip
/
08-05.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-06
|
680b
|
41 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
CONST Pages = 4
Status = SETMEM(-(Pages-1)*(4096+16))
NewMode = FGbestmode(80,25,Pages)
IF NewMode < 0 THEN
PRINT "This program requires ";
PRINT "an 80-column display."
STOP
END IF
OldMode = FGgetmode
FGsetmode NewMode
FGcursor 0
FOR Page = 0 TO Pages-1
Status = FGallocate(Page)
FGsetpage Page
FGsetcolor 7
FGrect 0, FGgetmaxx, 0, FGgetmaxy
FGsetattr 0, 7, 0
FGlocate 12, 37
CharString$ = "Page" + STR$(Page)
FGtext CharString$, 6
NEXT
FOR Page = 0 TO Pages-1
FGsetvpage Page
FGwaitkey
Status = FGfreepage(Page)
NEXT
FGsetmode OldMode
FGreset
END